<template>
    <div>
          <Header></Header>
                <van-nav-bar  @click.native="$router.push('/setnewpass')">
  <template #left>
    <span>设置密码</span>
  </template>
  <template #right>
    <van-icon name="arrow" />
       </template>
</van-nav-bar>
<div class="bottom" style="height:2rem;"></div>
         <van-button type="warning" block @click="Error">退出登录</van-button>
    </div>
</template>

<script>
import Header from '../Main/header'
export default {
    components:{
        Header
    },
    name: 'EverydayOptions',

    data() {
        return {
            
        };
    },

    mounted() {
        
    },

    methods: {
        Error(){
            localStorage.clear('login')
            this.$router.push('/login')
        }
    },
};
</script>

<style lang="scss" scoped>

</style>